package com.xnx3.wangmarket.admin.entity;

import javax.persistence.*;

import static javax.persistence.GenerationType.IDENTITY;

@Entity
@Table(name = "column_type")
public class ColumnType implements java.io.Serializable{

    /**
     * 模版页面类型，0:其他
     */
    public final static Short TYPE_ELSE = 0;
    /**
     * 模版页面类型，1:首页
     */
    public final static Short TYPE_INDEX = 1;
    /**
     * 模版页面类型，2:文章列表,文字列表
     */
    public final static Short TYPE_NEWS_LIST = 2;
    /**
     * 模版页面类型，3:文章详情
     */
    public final static Short TYPE_NEWS_VIEW = 3;
    /**
     * 模版页面类型，4：实验展示
     */
    public final static Short TYPE_EMPIRICAL_VIEW = 7;
//	/**
//	 * 模版页面类型，4:图片列表，图文列表，统一归属于文章列表、文章详情
//	 */
//	public final static Short TYPE_NEWSIMAGE_LIST = 4;
//	/**
//	 * 模版页面类型，5:图片详情，图文详情
//	 */
//	public final static Short TYPE_NEWSIMAGE_VIEW = 5;
    /**
     * 模版页面类型，6:单页面如关于我们，废弃，并入详情页模版
     */
    public final static Short TYPE_ALONEPAGE = 6;


    private Integer id;
    private String name;
    private int type;
    private String remarket;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getRemarket() {
        return remarket;
    }

    public void setRemarket(String remarket) {
        this.remarket = remarket;
    }
}
